﻿<%@ Page Language="C#" MasterPageFile="~/TrangQuanLy.master" AutoEventWireup="true" CodeFile="QuanTriTaiKhoanAdmin.aspx.cs" Inherits="QuanTriTaiKhoanAdmin" Title="Quản trị tài khoản admin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt">
        -&nbsp;&nbsp;&nbsp; Quản Lý Tài Khoản Quản Trị</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
    <table style="width:500px" align="center" cellpadding="5" cellspacing="0">
        <tr>
            <td colspan="2" style="text-align: center; color: #5D7B9D">
                <b style="font-size:18pt">THÊM TÀI KHOẢN ADMIN</b></td>
        </tr>
        <tr>
            <td>
                Tên tài khoản:</td>
            <td>
                <asp:TextBox ID="txttentaikhoan" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Mật khẩu:</td>
            <td>
                <asp:TextBox ID="txtmatkhau" runat="server" TextMode="Password"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Họ tên:
            </td>
            <td>
                <asp:TextBox ID="txthoten" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Địa chỉ:</td>
            <td>
                <asp:TextBox ID="txtdiachi" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Số điện thoại:</td>
            <td>
                <asp:TextBox ID="txtsodt" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Email:</td>
            <td>
                <asp:TextBox ID="txtemail" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="height: 26px; text-align: right">
                <asp:Button ID="btnthem" runat="server" onclick="btnthem_Click" 
                    style="text-align: right" Text="Thêm tài khoản" />
&nbsp;<asp:Button ID="btnlamlai" runat="server" onclick="btnlamlai_Click" Text="Làm lại" />
            </td>
        </tr>
        </table>

    <table style="width: 800px" align="center" >
        <tr>
            <td style="text-align: center">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="TenTK" Width="800px" 
                    onrowcancelingedit="GridView1_RowCancelingEdit" 
                    onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" 
                    onrowupdating="GridView1_RowUpdating">
                    <Columns>
                        <asp:BoundField DataField="TenTK" HeaderText="Tên tài khoản" />
                        <asp:BoundField DataField="MatKhau" HeaderText="Mật khẩu" />
                        <asp:BoundField DataField="HoTen" HeaderText="Họ tên" />
                        <asp:BoundField DataField="DiaChi" HeaderText="Địa chỉ" />
                        <asp:BoundField DataField="SoDienThoai" HeaderText="Điện thoại" />
                        <asp:BoundField DataField="Email" HeaderText="Email" />
                        <asp:CommandField ShowEditButton="True" />
                        <asp:CommandField ShowDeleteButton="True" ButtonType="Image" 
                            DeleteImageUrl="~/images/Deleteicon.png" />
                    </Columns>
                    <HeaderStyle BackColor="Black" ForeColor="White" />
                </asp:GridView>
            </td>
        </tr>
    </table>
&nbsp;

</asp:Content>

